package com.peter.design.pattern.decorator.battercake.v2;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/27 16:02
 * @Description:
 */
public class EggDecorator extends BattercakeDecorator{
    public EggDecorator(Battercake battercake) {
        super(battercake);
    }

    @Override
    protected String getMsg() {
        return super.getMsg() + "1个鸡蛋";
    }

    @Override
    public int getPrice(){ return super.getPrice() + 1;}
}
